package com.gxc.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @author GongXincheng
 * @since 2019-08-25 02:13
 */
@RestController
public class OrderController {

    @GetMapping("/order")
    public Object getOrder() {
        Map<String, Object> order = new HashMap<>(4);
        order.put("orderNo", "123123");
        order.put("orderName", "Apple->MacbookPro");
        order.put("createTime", new Date());
        return order;
    }

}
